﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Symbonix.NorSoNet.Framework.BLL
{
    public interface IEmailTemplate
    {
        int Id
        {
            get;
        }

        string Name
        {
            get;
            set;
        }

        string Subject
        {
            get;
            set;
        }

        string Body
        {
            get;
            set;
        }

        DateTime? LastUpdate
        {
            get;
            set;
        }

        IEmailTemplate Load(int id);
        IEmailTemplate Update();
        IEmailTemplate Create(string name, string subject, string body);
        bool Delete(int id);
        bool Delete();
        bool Delete(string name);
        List<IEmailTemplate> GetAllTemplates();
    }
}
